package com.zoffy.zoffyapi.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zoffy.zoffyapi.commen.IdRequest;
import com.zoffy.zoffyapi.model.dto.interfaceInfo.InterfaceInfoQueryRequest;
import com.zoffy.zoffyapi.model.dto.interfaceInfo.InterfaceInfoAddRequest;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zoffy.zoffyapi.model.vo.InterfaceInfoVo;
import com.zoffy.zoffyapicommon.model.entity.InterfaceInfo;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @author 86170
 * description 针对表【interface_info(接口信息)】的数据库操作Service
 * createDate 2023-12-05 19:04:18
 */
public interface InterfaceInfoService extends IService<InterfaceInfo> {
    long addInterfaceInfo(HttpServletRequest request, InterfaceInfoAddRequest interfaceInfoAddRequest);
    IPage<InterfaceInfoVo> listAllInterfaceInfoByPage(InterfaceInfoQueryRequest queryRequest);
    IPage<InterfaceInfoVo> listOnlineInterfaceInfoByPage(InterfaceInfoQueryRequest queryRequest);
    boolean deleteInterfaceInfos(HttpServletRequest request,InterfaceInfoVo[] interfaceInfoVos);
    boolean updateInterfaceInfo(HttpServletRequest request,InterfaceInfoVo interfaceInfoVo);
    boolean onlineInterface(HttpServletRequest request, IdRequest idRequest);
    boolean offlineInterface(HttpServletRequest request, IdRequest idRequest);
    InterfaceInfoVo getInterfaceVoById(IdRequest idRequest);
}
